﻿using CRM.Infrastructure.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CRM.Infrastructure.Dto
{
    public class CluesDto : Clues
    {
        /// <summary>
        /// 坐席名称
        /// </summary>
        public string SeatName { get; set; }

        /// <summary>
        /// 上传状态名称
        /// </summary>
        public string UploadStatusName
        {
            get
            {
                switch (UploadStatus)
                {
                    case 0:
                        return "匹配中";
                    case 1:
                        return "匹配成功";
                    case 2:
                        return "匹配失败";
                    default:
                        return "匹配中";
                }
            }
        }

        /// <summary>
        /// 性别
        /// </summary>
        public string SexName
        {
            get
            {
                switch (Sex)
                {
                    case 1:
                        return "男";
                    case 2:
                        return "女";
                    default:
                        return "未知";
                }
            }
        }

        /// <summary>
        /// 线索来源
        /// </summary>
        public string SourceName
        {
            get
            {
                switch (SourceID)
                {
                    case 1:
                        return "上传";
                    case 2:
                        return "分配";
                    default:
                        return "未知";
                }
            }
        }

        /// <summary>
        /// 线索类型名称
        /// </summary>
        public string ClueTypeName
        {
            get
            {
                switch (ClueType)
                {
                    case 1:
                        return "出险客户";
                    case 2:
                        return "续保客户";
                    default:
                        return "未知";
                }
            }
        }
    }
}